package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author lwj
 * @date 2025/6/9
 */
    
@Data
@TableName(value = "t_goods_category")
public class GoodsCategory {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父分类
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 类别名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 类别图标
     */
    @TableField(value = "pic")
    private String pic;

    /**
     * 类别大图
     */
    @TableField(value = "big_pic")
    private String bigPic;

    /**
     * 排序
     */
    @TableField(value = "order_num")
    private Integer orderNum;

    /**
     * 是否开启浏览权限
     */
    @TableField(value = "view_permissions")
    private Integer viewPermissions;

    /**
     * 允许查看等级列表
     */
    @TableField(value = "member_level_id_list")
    private String memberLevelIdList;

    /**
     * 允许查看城市列表
     */
    @TableField(value = "city_name_list")
    private String cityNameList;

    /**
     * 是否显示，0否1是
     */
    @TableField(value = "is_show")
    private Integer isShow;

    @TableField(value = "version")
    @Version
    private Integer version;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;
}